# @Time : 2025-02-21 16:19
# @Author : Fioman 
# @Phone : 13149920693
"""
报警日志记录表
"""
from common.datetime_helper import get_now_str
from db_tool.db_config import TableName, TableRegister, re_init_table

tableName: str = TableName.alarmRecords.name
initData = {
    "key": 1,
    "happenTime": get_now_str(),
    "alarmContent": "报警测试1"
}
TableRegister.register_table(tableName, initData)
if __name__ == '__main__':
    # 重新创建表结构,或者新增表字段之后,重新初始化表内容,谨慎使用
    re_init_table(tableName, initData)
